angular.module('wjwuser.controllers', [])

.controller('userCtrl', function($scope) {
	var userData = localStorage.getItem("userData")
	var userLogin = localStorage.getItem("userLogin")
	$scope.login = userLogin?true:false
//	$scope.login = false
//------------------------------------------------
	var num=0;
$('.w_toggle').click(function(){
	num++
	if(num%2==1){		
	   $(this).attr("class","w_toggle ion-toggle-filled");
	   $('.w_lis1').css({
	 	backgroundColor:"#4D4D4D",
      });
      $('.w_lis2').css({
	 	backgroundColor:"#4D4D4D",
       })
	}else{
	   $(this).attr("class","w_toggle ion-toggle");
	   $('.w_lis1').css({
	 	backgroundColor:"#E6E6E6",
       });
       $('.w_lis2').css({
	 	backgroundColor:"#E6E6E6",
       });
	};
	
})
})
